package top.buyibuyi.course.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
import top.buyibuyi.course.R;
import top.buyibuyi.course.pojo.Admin;

@FeignClient("course-admina")
@Component
public interface LoginClient {


    @PostMapping("/admin/login")
    public R loginAdmin(@RequestBody Admin admin);

    @GetMapping("/admin/info")
    public R info();
}
